package org.southyin.springboot01.controller;

import com.github.pagehelper.PageInfo;
import org.southyin.springboot01.service.HelloService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloController {
    @Autowired
    HelloService service;
    @GetMapping("/hello")
    public PageInfo hello(int pageNum,int pageSize) {
        return service.hello(pageNum,pageSize);
    }
}
